package demo3;

/**
 * ClassName Test
 * Description TODO
 * Author Yanyan
 * Date 2025/11/12 22:11
 * Version 1.0
 */
public class Test {
    public static void drawMap(IShapable shape) {
        shape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Rect());
        drawMap(new Cycle());

        IShapable[] ishapes = {new Rect(),new Cycle()};
        IShapable ishape = new Cycle();
    }
}
